package com.wtb.pub;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.wtb.domain.DataCache;

@SuppressWarnings("serial")
public class FromDatabase extends WtbBaseServlet {
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		
			synchronized (DataCache.rrmap) {
				try {
					Thread.sleep(1000*60);
					DataCache.rrmap = null;
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
		
			/*try {
				DataCache.suspendFlag = true;
				DataCache.rrmap = null;
				Thread.sleep(1000*60);
				DataCache.suspendFlag = false;
				notifyAll();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}*/
	}

}
